/*
 *  cocoa/appImp.h
 *  mini
 *
 *  Created by jin on 1/1/11.
 *  Copyright 2011 cs. All rights reserved.
 *
 */

#import <Cocoa/Cocoa.h>
#import "appImp.h"

CocoaAppImp::CocoaAppImp(AppBase* owner_) : AppImpBase(owner_)
{
    pool = [[NSAutoreleasePool alloc] init];

    //initial cocoa application for start
    [NSApplication sharedApplication];
    [NSMenu setMenuBarVisible : YES];
}

CocoaAppImp::~CocoaAppImp()
{
    [pool release];
}

void CocoaAppImp::Run()
{
    NSApplication* app = [NSApplication sharedApplication];
    [app run];
}
